<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   <ul id="myList"></ul>

<script>
  const list = document.getElementById('myList');
  
  for (let i = 1; i <= 10; i++) {
    const listItem = document.createElement('li');
    listItem.textContent = `这是第 ${i} 个列表项`;
    list.appendChild(listItem);
  }
</script>
    
</body>
</html>